<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>在线工具 - OKTools</title>
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="keywords" content="在线工具,工具,开发工具,二维码,JSON格式化,Unix时间戳,Base64,MD5,加密解密">
    <meta name="description" content="OKTools是一个在线工具网站。提供二维码制作、JSON格式化、Unix时间戳转换、Base64编码、加密解密、图片压缩、IP查询、Hash计算等常用工具。">
    <link rel="stylesheet" href="./static/css/style.css" type="text/css">
</head>
<body style="display:block;background:var(--color-accent)">
<header>
    <div class="container">
        <a class="logo" href="/"><strong>OKTools</strong></a>
        <nav>
            <a class="nav-item" onclick="addFavorite()">加入收藏</a>
            <a class="nav-item" target="_blank" href="https://support.qq.com/products/66960">留言反馈</a>
            <a class="nav-item" href="https://github.com/wangyiwy/oktools">项目源码</a>
        </nav>
    </div>
</header>
<div class="container tools">
    <a class="tool" href="/json"><p>JSON格式化</p>
        <p>https://oktools.net/json</p>
    </a>
    <a class="tool" href="/json2xml"><p>JSON/XML转换</p>
        <p>https://oktools.net/json2xml</p>
    </a>
    <a class="tool" href="/json2yaml"><p>JSON/YAML转换</p>
        <p>https://oktools.net/json2yaml</p>
    </a>
    <a class="tool" href="/json2go"><p>JSON转Go Struct</p>
        <p>https://oktools.net/json2go</p>
    </a>
    <a class="tool" href="/base64"><p>Base64编码解码</p>
        <p>https://oktools.net/base64</p>
    </a>
    <a class="tool" href="/image2base64"><p>图片Base64编码</p>
        <p>https://oktools.net/image2base64</p>
    </a>
    <a class="tool" href="/timestamp"><p>Unix时间戳</p>
        <p>https://oktools.net/timestamp</p>
    </a>
    <a class="tool" href="/color"><p>颜色值转换</p>
        <p>https://oktools.net/color</p>
    </a>
    <a class="tool" href="/number"><p>进制转换</p>
        <p>https://oktools.net/placeholder</p>
    </a>
    <a class="tool" href="/url"><p>URL编码解码</p>
        <p>https://oktools.net/url</p>
    </a>
    <a class="tool" href="/unicode"><p>Unicode编码转换</p>
        <p>https://oktools.net/unicode</p>
    </a>
    <a class="tool" href="/pdf2img"><p>PDF转图片</p>
        <p>https://oktools.net/pdf2img</p>
    </a>
    <a class="tool" href="/morse"><p>摩斯电码</p>
        <p>https://oktools.net/morse</p>
    </a>
    <a class="tool" href="/hash"><p>Hash计算</p>
        <p>https://oktools.net/ip</p>
    </a>
    <a class="tool" href="/file-hash"><p>文件Hash计算</p>
        <p>https://oktools.net/file-hash</p>
    </a>
    <a class="tool" href="/aes"><p>AES加密解密</p>
        <p>https://oktools.net/aes</p>
    </a>
    <a class="tool" href="/des"><p>DES加密解密</p>
        <p>https://oktools.net/des</p>
    </a>
    <a class="tool" href="/rsa"><p>RSA加密解密</p>
        <p>https://oktools.net/rsa</p>
    </a>
    <a class="tool" href="/tinyimg"><p>图片压缩</p>
        <p>https://oktools.net/tinyimg</p>
    </a>
    <a class="tool" href="/qrcode"><p>二维码制作</p>
        <p>https://oktools.net/qrcode</p>
    </a>
    <a class="tool" href="/ip"><p>IP查询</p>
        <p>https://oktools.net/qrcode</p>
    </a>
    <a class="tool" href="#" onclick="hrefForNoTLS('/websocket')"><p>WebSocket测试</p>
        <p>https://oktools.net/websocket</p>
    </a>
    <a class="tool" href="/regex"><p>正则表达式测试</p>
        <p>https://oktools.net/regex</p>
    </a>
</div>
<script>
    function addFavorite() {
        try {
            window.sidebar.addPanel(location.href, document.title, "");
        } catch (e) {
            try {
                window.external.addFavorite(document.title, location.href)
            } catch (e) {
                alert("请使用快捷键Ctrl+D添加到收藏");
            }
        }
    }
    function hrefForNoTLS(path) {
        window.location.href = 'http://' + window.location.host + path;
    }
</script>
<script>
    var _hmt = _hmt || [];
    let hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?e3d5bc397b23c3f6a8036739dae1557b";
    let s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);

    let tools = document.querySelectorAll('.side-nav li');
    for (let i = 0; i < tools.length; i++) {
        let node = tools[i];
        if (node.querySelector('a').getAttribute('href').endsWith(document.location.pathname)) {
            node.classList.add('active');
            break
        }
    }
</script>
</body>
</html>